package bean;

public class Dispatcher {
int dispatcherid;//配送员唯一标识
int userid;  //外键关联到用户登录表
String dispatchername;
String dispatchersex;
int dispatcherage;  //配送员年龄
String dispatcherphone;
String dispatcheraddress;
Float dserwallet;
String  grade;//配送员等级

    public Dispatcher() {
    }

    public Dispatcher(int dispatcherid, int userid, String dispatchername, String dispatchersex, int dispatcherage, String dispatcherphone, String dispatcheraddress, Float dserwallet, String grade) {
        this.dispatcherid = dispatcherid;
        this.userid = userid;
        this.dispatchername = dispatchername;
        this.dispatchersex = dispatchersex;
        this.dispatcherage = dispatcherage;
        this.dispatcherphone = dispatcherphone;
        this.dispatcheraddress = dispatcheraddress;
        this.dserwallet = dserwallet;
        this.grade = grade;
    }

    public int getDispatcherid() {
        return dispatcherid;
    }

    public void setDispatcherid(int dispatcherid) {
        this.dispatcherid = dispatcherid;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getDispatchername() {
        return dispatchername;
    }

    public void setDispatchername(String dispatchername) {
        this.dispatchername = dispatchername;
    }

    public String getDispatchersex() {
        return dispatchersex;
    }

    public void setDispatchersex(String dispatchersex) {
        this.dispatchersex = dispatchersex;
    }

    public int getDispatcherage() {
        return dispatcherage;
    }

    public void setDispatcherage(int dispatcherage) {
        this.dispatcherage = dispatcherage;
    }

    public String getDispatcherphone() {
        return dispatcherphone;
    }

    public void setDispatcherphone(String dispatcherphone) {
        this.dispatcherphone = dispatcherphone;
    }

    public String getDispatcheraddress() {
        return dispatcheraddress;
    }

    public void setDispatcheraddress(String dispatcheraddress) {
        this.dispatcheraddress = dispatcheraddress;
    }

    public Float getDserwallet() {
        return dserwallet;
    }

    public void setDserwallet(Float dserwallet) {
        this.dserwallet = dserwallet;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Dispatcher{" +
                "dispatcherid=" + dispatcherid +
                ", userid=" + userid +
                ", dispatchername='" + dispatchername + '\'' +
                ", dispatchersex='" + dispatchersex + '\'' +
                ", dispatcherage=" + dispatcherage +
                ", dispatcherphone='" + dispatcherphone + '\'' +
                ", dispatcheraddress='" + dispatcheraddress + '\'' +
                ", dserwallet=" + dserwallet +
                ", grade='" + grade + '\'' +
                '}';
    }
}
